<?php namespace Admin\Model;
use Hdphp\Model\Model;

class Article_data extends Model{
	// 设置该模型要操作的表为article_data
	protected $table = "article_data";

	protected $validate = array(
		array('content','required','文章内容不能为空',3,3),
		);

	public function addData(){
		if(!$this->create()) return false;
		$this->add();
		return true;
	}

}